A good answer might be:

The Java runtime system catches it.

Checked and Unchecked Exceptions

The Java runtime system will catch the exception, just as your code can do with a catch{} block, and then prints out the message and the stack trace of the exception.

Here (again) is our list of exception types, with the checked exceptions indicated. Only RunTimeException and its subclasses are not checked. The parent class, Exception is checked.

Exception CHECKED

    IOException CHECKED

    AWTException CHECKED

    RunTimeException
        ArithmeticException
        IllegalArgumentException
            NumberFormatException
        IndexOutOfBoundsException
        Others

    Others CHECKED

QUESTION 6:

What must your code do with a checked exception?